package cn.hzw.supermarket.domain;

import java.io.Serializable;

public class ShoppingCar implements Serializable {
        /**
         * 购物车自动增长id
         */
        Integer id;
        /**
         * 商品id
         */
        Integer goodsid;
        /**
         * 用户名
         */
        String username;
        /**
         * 商品名
         */
        String goodsname;
        /**
         * 商品单价
         */
        Float goodsprice;
        /**
         * 量词
         */
        String goodsunit;
        /**
         * 商品图片
         */
        String goodspicture;

        /**
         * 购买时间
         */
        String ordertime;
        /**
         * 购买数量
         */
        Integer num;

        public ShoppingCar(){
            super();
        }

    public ShoppingCar(Integer id, Integer goodsid, String username, String goodsname, Float goodsprice, String goodsunit, String goodspicture, String ordertime, Integer num) {
        super();
        this.id = id;
        this.goodsid = goodsid;
        this.username = username;
        this.goodsname = goodsname;
        this.goodsprice = goodsprice;
        this.goodsunit = goodsunit;
        this.goodspicture = goodspicture;
        this.ordertime = ordertime;
        this.num = num;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname;
    }

    public Float getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(Float goodsprice) {
        this.goodsprice = goodsprice;
    }

    public String getGoodsunit() {
        return goodsunit;
    }

    public void setGoodsunit(String goodsunit) {
        this.goodsunit = goodsunit;
    }

    public String getGoodspicture() {
        return goodspicture;
    }

    public void setGoodspicture(String goodspicture) {
        this.goodspicture = goodspicture;
    }

    public String getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(String ordertime) {
        this.ordertime = ordertime;
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Override
    public String toString() {
        return "ShoppingCar{" +
                "id=" + id +
                ", goodsid=" + goodsid +
                ", username='" + username + '\'' +
                ", goodsname='" + goodsname + '\'' +
                ", goodsprice=" + goodsprice +
                ", goodsunit='" + goodsunit + '\'' +
                ", goodspicture='" + goodspicture + '\'' +
                ", ordertime='" + ordertime + '\'' +
                ", num=" + num +
                '}';
    }
}
